//
//  ZCHealthyCell.m
//  zctx
//
//  Created by apple on 16/1/4.
//  Copyright © 2016年 sanliang. All rights reserved.
//

#import "ZCHealthyCell.h"
#import "ZChealthyModelContent.h"
@implementation ZCHealthyCell

- (void)awakeFromNib {
    // Initialization code
    self.titleLable.textColor = [UIColor colorWithHexString:@"#8a8a8a"];
    self.beanLable.textColor = [UIColor colorWithHexString:@"#f8a00a"];
    self.timeLable.textColor = [UIColor colorWithHexString:@"#b2b2b2"];
}

-(void)setHealthyModel:(ZChealthyModelContent *)healthyModel{
    _healthyModel = healthyModel;
    self.titleLable.text = healthyModel.actionName;
    self.beanLable.text =[NSString stringWithFormat:@"+%@",healthyModel.beans];
    int timeInt =[healthyModel.ctime intValue];
    self.timeLable.text = [NSString stringWithFormat:@"%@",stringDataWithTimeInterval(timeInt)];
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
